#pragma once

#include <Util/MsgQueueExThreads.h>
#include <interface/file_trans_client_interface.h>
struct download_img_pack
{
	CString user_id;
	CString from_dll;
};
class face_img_download_thread 
	: public _UTIL::CMsgQueueExThreads<download_img_pack>
{
public:
	face_img_download_thread(void);

	~face_img_download_thread(void);

	virtual BOOL Create(int nThreadCount = 1);

	virtual void OnProcMsgQueueStart();

	virtual void LoopProc(download_img_pack* pMsgPack, PWORKER_PARAMETER work_para);

	BOOL push_message(const char* user_id, const char* from_dll);
	
protected:

	CString face_img_folder_;

	aot::tt::iobj_auto_ptr<aot::file_trans::ifile_trans_client> client_;

	aot::file_trans::isession* session_;
};
